home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / groff-base.preinst < prev    next >
Text File  |  2009-08-18  |  786b  |  31 lines

  1. #! /bin/sh -e
  2.  
  3. case $1 in
  4.     install|upgrade)
  5.     if dpkg --compare-versions "$2" lt 1.17-2; then
  6.         if [ -d /usr/share/groff/site-tmac ]; then
  7.         if [ -d /etc/groff ]; then
  8.             # Erm. This shouldn't happen.
  9.             echo "Moving /usr/share/groff/site-tmac out of the way."
  10.             mv -f /usr/share/groff/site-tmac \
  11.               /usr/share/groff/site-tmac.old
  12.         else
  13.             echo "Moving /usr/share/groff/site-tmac to /etc/groff."
  14.             mv -f /usr/share/groff/site-tmac /etc/groff
  15.             touch /usr/share/groff/site-tmac.moved-by-preinst
  16.         fi
  17.         fi
  18.         if [ -e /etc/tmac.man.local ]; then
  19.         echo "Moving /etc/tmac.man.local to /etc/groff/man.local."
  20.         mkdir -p /etc/groff
  21.         mv -f /etc/tmac.man.local /etc/groff/man.local
  22.         touch /etc/tmac.man.local.moved-by-preinst
  23.         fi
  24.     fi
  25.     ;;
  26. esac
  27.  
  28.  
  29.  
  30. exit 0
  31.